<template>
  <div class="box-centent">
    <div class="nav-box">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>下载中心</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="download">
      <div class="title">
        资料下载
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>
      <div class="item">
        <div class="msg">史上最全最实用人力资源部表格资料下载</div>
        <el-button type="primary">立即下载</el-button>
      </div>

      <div class="block">
        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage1" :page-size="10" layout="prev, pager, next, total" :total="100" background pager-count="10" hide-on-single-page>
        </el-pagination>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  data () {
    return {
      activeName: 'first',
      currentPage1: 1,
      search: ''
    }
  },
  methods: {
    handleClick (tab, event) {
      // console.log(tab, event)
    },
    handleSizeChange (val) {
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange (val) {
      console.log(`当前页: ${val}`)
    },
    goMore () {
      this.$router.push('/fruitText')
    }
  }
}
</script>

<style lang="scss" scoped>
.box-centent {
  width: 1200px;
  margin: 0 auto;
  .nav-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 18px 0;
    /deep/.el-breadcrumb {
      flex: 1;
    }
    .nav-search {
      display: flex;
      align-items: center;
      /deep/ .el-input {
        width: 85%;
        .el-input__inner {
          border-radius: 12px;
          height: 21px;
          line-height: 21px;
          padding-left: 15px;
          background: #f5f7ff;
        }
      }
      /deep/ .el-input__prefix {
        left: 115px;
        .el-icon-search {
          line-height: 21px;
        }
      }
    }
  }
  .download {
    padding: 0 180px;
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    text-align: center;
    .title {
      padding-top: 28px;

      font-size: 24px;
      color: rgba(6, 17, 37, 1);
      font-weight: 600;
    }
  }
  /deep/.el-button {
    padding: 8px 18px;
  }
  /deep/.el-button--primary {
    background: linear-gradient(
      135deg,
      rgba(91, 192, 251, 1) 0%,
      rgba(46, 141, 246, 1) 100%
    );
  }
  .item {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #979797;

    font-size: 18px;
    color: rgba(19, 35, 64, 1);
    font-weight: 550;
    .msg {
      flex: 1;
      text-align: left;
    }
  }
  /deep/.block {
    padding: 32px 0 48px;
    .el-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      .el-pagination__total {
        float: right;
      }
    }
    .btn-prev,
    .btn-next {
      border-radius: 14px;
      background: rgba(148, 148, 148, 0.5);
      .el-icon {
        color: #606266;
      }
    }
    .number {
      border-radius: 14px;
      background: none;
    }
    .btn-next {
      border-radius: 14px;
      background: rgba(148, 148, 148, 0.5);
      .btn-next:disabled {
        color: #333;
      }
    }
  }
}
</style>
